"""cxsys URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from apps.shiyanshi import views
from django.conf.urls.static import static
from django.conf import settings
from apps.shiyanshi.views import blog_list


urlpatterns = [
    path('admin/', admin.site.urls),
    path('', views.home, name='home'),
    path('inner_page/', views.inner_home, name='inner_home'),
    path('login/', views.login, name='login'),
    path('signin/', views.sign_in,name='sign_in'),
    path('quesion_list/', views.question_list, name='question_list'),
    path('quesion_creat/', views.question_creat, name='question_creat'),
    path('question_page/<int:question_id>', views.question_page, name='question_page'),
    path('blog/<int:blog_pk>', views.blog_detail, name="blog_detail"),
    path('blog/', views.blog_list, name='blog_list'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
